﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AiXiu.Model;

namespace AiXiu.IDAL
{
    /// <summary>
    /// 用户操作接口
    /// </summary>
    public interface IUserService
    {
        /// <summary>
        /// 根据Id查询用户信息
        /// </summary>
        /// <param name="Id">Id</param>
        /// <returns>Id为 Id 的用户信息</returns>
        TBUsers getUserById(int Id);

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="newUser">修改后的用户信息</param>
        /// <returns>是否修改成功</returns>
        int editUserInfo(TBUsers newUser);

        /// <summary>
        /// 修改用户头像
        /// </summary>
        /// <param name="newAvatar">用户头像的Url</param>
        /// <returns>是否修改成功</returns>
        int editAvatar(TBUsers newUser);
    }
}
